package com.woniuxy.commons.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @Author weizihan
 * @Date 2020/7/17 2020/7/17
 * @Description 版本返回的同一格式
 * @Since version-1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ResponseResult<T> implements Serializable {
    private Integer code;       //状态码
    private T data;   //数据
    private String message; //内容

    public ResponseResult(Integer code, String message) {
        this(code,null,message);
    }
}
